package edu.nazarevych.portal.entities;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Entity
@Table(name = "tbl_Personel")
public class Personel extends BaseEntity {

	@ManyToOne
	@JoinColumn(name = "User", nullable = false)
	private User user;
	
	@ManyToOne
	@JoinColumn(name = "Station", nullable = false)
	private Stations station;


	public String toString() {
		return ReflectionToStringBuilder.toString(this,
				ToStringStyle.SHORT_PREFIX_STYLE);
	}


	public User getUser() {
		return user;
	}


	public void setUser(User user) {
		this.user = user;
	}


	public Stations getStation() {
		return station;
	}


	public void setStation(Stations station) {
		this.station = station;
	}

	

}
